const { Controller } = require('egg');

class MenuController extends Controller {
  async menu() {
    const menuList = await this.ctx.service.menu.getMenuList();
    this.ctx.body = { menuList, status: 200, message: '获取菜单成功' };
  }
}
module.exports = MenuController;
